package com.peas.platform.module.icims.contract.initial.adapter.repository.po;

import java.util.*;
import java.math.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 初始合同执行-变更
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_contract_initial_change`")
public class ContractInitialChangePo extends BasePo {

    // 合同ID
    // 【初始合同表】
    @Comment(value = "合同ID")
    @NotNull(message = "合同ID不能为空")
    @TableField(value = "`contract_initial_id`", jdbcType = JdbcType.BIGINT)
    private Long contractInitialId;

    // 批次号
    @Comment(value = "批次号")
    @Size(max = 20, message = "批次号不能超过20个字符")
    @TableField(value = "`batch`", jdbcType = JdbcType.VARCHAR)
    private String batch;

    // 变更经办人
    // 【用户表】
    @Comment(value = "变更经办人")
    @TableField(value = "`change_user_id`", jdbcType = JdbcType.BIGINT)
    private Long changeUserId;

    // 变更经办人部门
    // 【组织架构表】
    @Comment(value = "变更经办人部门")
    @TableField(value = "`change_department_id`", jdbcType = JdbcType.BIGINT)
    private Long changeDepartmentId;

    // 变更原因
    @Comment(value = "变更原因")
    @Size(max = 1000, message = "变更原因不能超过1000个字符")
    @TableField(value = "`change_reason`", jdbcType = JdbcType.VARCHAR)
    private String changeReason;

    // 合同编码
    @Comment(value = "合同编码")
    @NotBlank(message = "合同编码不能为空")
    @Size(max = 100, message = "合同编码不能超过100个字符")
    @TableField(value = "`code`", jdbcType = JdbcType.VARCHAR)
    private String code;

    // 合同名称
    @Comment(value = "合同名称")
    @NotBlank(message = "合同名称不能为空")
    @Size(max = 200, message = "合同名称不能超过200个字符")
    @TableField(value = "`name`", jdbcType = JdbcType.VARCHAR)
    private String name;

    // 合同类型
    // 【合同类型表】
    @Comment(value = "合同类型")
    @TableField(value = "`type`", jdbcType = JdbcType.BIGINT)
    private Long type;

    // 合同签订人ID
    // 【合同签订人表】
    @Comment(value = "合同签订人ID")
    @TableField(value = "`contract_signer_id`", jdbcType = JdbcType.BIGINT)
    private Long contractSignerId;

    // 合同签订部门ID
    // 【组织架构表】
    @Comment(value = "合同签订部门ID")
    @TableField(value = "`contract_signer_department_id`", jdbcType = JdbcType.BIGINT)
    private Long contractSignerDepartmentId;

    // 负责部门ID
    // 【组织架构表】
    @Comment(value = "负责部门ID")
    @TableField(value = "`department_id`", jdbcType = JdbcType.BIGINT)
    private Long departmentId;

    // 负责人用户ID
    // 【用户表】
    @Comment(value = "负责人用户ID")
    @TableField(value = "`user_id`", jdbcType = JdbcType.BIGINT)
    private Long userId;

    // 合同金额
    @Comment(value = "合同金额")
    @TableField(value = "`amount`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal amount;

    // 合同起始时间
    @Comment(value = "合同起始时间")
    @TableField(value = "`contract_launch`", jdbcType = JdbcType.TIMESTAMP)
    private Date contractLaunch;

    // 合同终止时间
    @Comment(value = "合同终止时间")
    @TableField(value = "`contract_complete`", jdbcType = JdbcType.TIMESTAMP)
    private Date contractComplete;

    // 合同内容
    @Comment(value = "合同内容")
    @TableField(value = "`content`", jdbcType = JdbcType.CLOB)
    private String content;

    // 变更状态
    // 枚举取值:ContractInitialChangeState
    @Comment(value = "变更状态", enumType = "ContractInitialChangeState")
    @Size(max = 20, message = "变更状态不能超过20个字符")
    @TableField(value = "`state`", jdbcType = JdbcType.VARCHAR)
    private String state;

}
